bug fix to page controller