implemented active state for navigation