Another update, I got focus event running properly so that panels are dispatched on top of the last clicked panel, still a few bugs with that, namely if panels are minimized or floating things get a bit wonky. but I'm basically ready to start tieing the database into the main editor.