controller for request