fixed errors when using html in page controller