fixed show flash messages