fixed some minor issues with the unitpanel