cleaned code in template editor
Added new options in schema validator