Added delete input handler