Added code for pagination, showing number of results, and no results message