add record edit view for medication