Adding remove.pre event