fix navbar not collapsing on iOS devices