Dispatching the application and sending the response