Update adminpanel.php

misposted functions into panel