getting active navbar element to pass