finished up the foundation for admin