Added permission check for activity button