add event controller
Merge branch 'master' of https://github.com/edamon/PhotoGallery