Use data provided by ERP5 backend to render client side navigation and context box.
Refactor code and use proper names.