refactoring WelcomeController and HistoryOfPhoto