Use flash_messages helper in custom view

'layouts/flash' does not exist anymore. It was replaced by this helper.