Added in toggling view type