refactor, reuse the controller code in consilia and medical note
update page implementation