main menu window preparation (still error)