fix footer issue with pagination