Fixed use of global moved navbar funcs to navbar and trigger with trigger.