enables dynamically updating the breadcrumb for a given state