refact logic template get links nav