MDL-43089 Control pagebreaks through ajax