added basic nav code