adds main window + basic open file functionality