add event handlers, remove old duration input