Remove admin panel functions from this file
Give admin panel its own functions file