fix bug and add suport to ajax

i add a js for support ajax and change the template for new design.
now ,we can use the btn with ajax style