Update ViewModel.java

changed setmenulayout, more compact