adds proper collapse navigation