add onClick event handler that will open method in editor