adding a selected state for the nav