init
added Pagination and other things