updated examples and added nav switch example