impemented navigation directive