Refactors controller to remove double-query on direct access of details page

As map was removed, details page does not need to query the API twice
when directly visiting the page.