added redirection in case of any intrusion and fixed the redeclaration error of PageController in some cases