Add blocks which get called when a message is shown and a button is touched