edit and show functions in medicine controller