Found the issue see lines 10 & 12 in pagelayout..cs