write main menu.
some changed
write over