fixing MidiView update on track create / delete, small refactoring