Fix code for MenuViewController

Rearrange code.
Create type and menu arrays