small change regarding viewType toggling