itemController and searchresults.php bug fix