- fixed crash when select path from the dropdown in breadcrumbbbar

- started reorganisation of the code