implemented flatten navigation
implemented flatten navigation context