refactor code
rename layout and template chat module
remove old and new template widget, keep only one