remove handler after clicking on it