fixed Set button onclick event