compass init, nav toggle on mobile