add botton clicked event and handler function