Previous and Next buttons not affected by the loading of footer content