panels and buttons working