Add check for previous request in search controller