delete flash messages after ajax request