fix nav-bar show/hide depending on type of nav-stack; add #defines for conditional compilation of demo app