Fix logic for view type switching