moved the sub classes in UserPermissionsPanel out and wrote tests for the controllers