undockEnabled function for panel and tabHandle..
fix.