all search works, added previous and next functionality