Added path detection to nav and defined active class