refactored controller by adding base Responder class