Added button title to dismiss handler for convenience.