remove adminView function from controller