Improve settings and make cancle menu item work
Some work on a code editor