adds preview() w/ key bindings to IDE