fix footer and pagination