Adding implementations of main window's some methods.