taking care of repeated flash issue using flash.now