refactor photo detail view handling, in progress...