Moving pagination to form structure