Added dynamic resizing of ControlPanel.
Added displaing battery level.