Fixed troubles with mainform.ui