fixes view mode stuff