remove overlay for panel, and make it in js