extracted logic for redirecting search results
extracted checking_rt and saving and returning result logic from searches#show