adding guide functinality to search.php