Fixed an issue with the edit window and made it so that it has focus when it is active.