Implemented Singleton pattern in controller for implementing Observer pattern