Maybe extract this into a method like 'populateNavigationMenu' or something similar ?