replace unnecessary event triggers