using flash to rebuild show message function