added clear main form input for form

* added and fill static variables and a few ect