added state of nav bar