fixed problems with admin page