Save and load main frame position and size