Setting time out to flash messages