added autoedit on focus when coding