make search and pagination better usable
remove unused codes
Merge pull request #41 from pnagy/master

make search and pagination better usable