Advanced application template: Delete flash message after it was displayed