fix cache and add a simple photo by photo view