small fixes to main form