Fixed #93. Make sure that when the menu is changed the old view is removed