collapse mobile nav on view change