listening to open editor to track last opened scratch