added next and previous to search