Page controller fixed so that it wouldnt output draft pages