update template, css, js. include jquery-ui. made template for function