add groups functinality
refactor the assigned application's view for users and groups.