flash messages reverted