Added window position save to main frame
Removed prototype