edit FrmMain: remove useless code