added space delete on click