fixed bug with updating background size of control panel