adding support for data attributes on button