Added a response class and modified view and redirect to extend it