better interaction with pagination