button class internal callback before send event