add menu and role function