added isAdmin in MainController