flash message can fades automatically and can be closed before fade