add removeInput button functionality