add flash
flash success
only setState when there are notifications
display flash messages