reverting back to the link with pagination