Make active state of main nav work