close menu when view updates