Refactoring MindmapController