finished up functionality for the admin page