fixed some bugs with the controls menu example