adding pagination and changed css and js