added pagination and search form for cards