updating if statement to control breadcrumb