Changed nav so it works from own class.