refactoring for photo nav and post views