begining final stages and make the editor work on save