start building nav buttons to switch charts. problems with scoping