Implementation of some methods in the main window controller