add dialog
add hbs
refacotirng