Update setFlash and Helper