modified controller definitions for both galleries and welcome page