add ajax and pagination for dashboard pages