add template, css cleanup, support value tooltip