Update the pagePicker function for contao 3.