Remove unnecessary messagebox on zoom extents with no bone selected, and default chkZoomExtents.Enabled to false, since selected bone doesn't change until someone actually clicks a bone. This way, the zoom extents button will always be disabled if no bone is selected