Show flash messages after the modal is dismissed

Show flash messages for offer success or failure after the modal is dismissed.

Fixes #896.