add Adding/Editing medication functionality