code editor fixes and dialog resize/move fix