fixed properly setting hasRendered(TRUE) in website class
added lines to control and capture output buffer