Removed the controller redirect and added javascript one