edit medication function done