added generic ControlsHandler class to manage different control handlers (mainly the core handler and the frontend handler)