fixed changing views to work for all views