Added automatic admin redirection to adminpanel