updated for dynamic  navigation view inside main container