added form tags to view and edit hierarchy