making dom stuff work in instance mode closes #269