add trigger event to change element current state