add editing for doctors and patients