added pagination
added searching features finally