Added redraw function that brings button and checkbox back in sync.