Changed the note manager into a Singleton