Control number of additional pages according to dropdown menu