Let's use the click event of a class .nav-item instead of individual ids.