added a 500ms debounce on editor change