added pagination and a search function
defined method search
added button search and the pagination links