bug fixes and re-enter medicine name functionality