Main window added

Some “Cancel” button functionality added