improve formatting string in navigateTo method