Added options to save and restore the window position and size