fixed bugs in control panel application