added open and html methods