refactor explore photos controller