Refactored notemanager module to better employ MVC models