Correct navbar active function