fixed error when creating first page of new subject running php max fx on 0 length array and fixed white space headers problem in create_page.php.