Add autoclose to menu