bug with DOM update in inserted template with UI when session value change