Return button index when adding a button.
Add block based UIControl methods.