Added auto viewing mode change