add func to replace header & modify some check mechism then show toast