diff --git a/profile.py b/profile.py
index 1e441fbdb4f9faf427d31548954c5c06e590c292..3b3d48678e840934b8f1c0879f4124380b4e5c57 100644
--- a/profile.py
+++ b/profile.py
@@ -7,10 +7,9 @@ import os
 plugin_dir = os.path.dirname(__file__) # parent folder name of the absolute path of this file
 
 
-def register(add_endpoint, add_postable_endpoint, add_menu):
-    add_endpoint('profile', profile)
-    add_menu('profile', 'Profile', 'profile')
-    add_postable_endpoint('password_change', pwchange)
+def register(add_endpoint):
+    add_endpoint(endpoint_id='profile', handler=profile, permission_name='profile', menutext='Profile')
+    add_endpoint(endpoint_id='password_change', handler=pwchange, permission_name='profile', method='POST')
 
 
 def collect_users(username):