update templates structure
implement username dialog
Merge branch 'router-dialog'