added button template withous inline css and button invocation function