button: add ability to specify title (close #889)

cc @mishanga