adding hook update for reverting feature