when in a search result and gallery do not show back navigation twice