Move navigation UI from header bar to left panel.
Extract duplicated navigation code.