photo detail view working