There is a one line difference which is that the 'settings' editor is the current mode in the second one. I'll think about sharing some of this logic...