fixed hiding form elements and selecting initial focus