store toggle value for navigation bar