snippet added in order to ease generation of buttons to be used in flash messages