fixed loading of the form window