Added listener for the menu.
Moved logic from MainWindow to Manager, all significant work will be done
there from now on.§