Fixed controlPanel so it can update