Added automatic view switch on image select