fixed other problems, still undefined property

in pages controller