Main window and some basic stuff.