fixing bugs in panel interface