fixing changing views