fixed minor bug with pagecontrol