Created and added basic functions to the main window.