Update UI and fix navigation for agreement search and public view.