added passing tabindex to button block

Fixes #1174