fix bug in page controller classes