=convert to jquery plugin style
=add dialog