convert flash to flash.now before all render commands to prevent multiple flash messages from appearing