improved panel and moving when clicking