Implement controller
Make controller a singleton