Working search box and previous/next buttons