refactored registered and unassigned students scopes and methods for home page