Event button hanlder with on function. Needs jQuery 1.7+
Fix to enable the calbacks