Page controller commented some codes and added some code for redirection