added functions to adminController