adds context sensitivity to navbar