Moved form to the end of script