Update delete and edit functions in input_form