Commandbar now opens and closes properly.