change edit patient to graph first