created an admin model and added function to getApplications