add pagination and fix create and destroy bugs