Controlles view change