add root controller and edit ui