some fixes in FrmMain