removing the menu item for activity and fixing the activity query