refactoring

use dockpanelsuite to make it more beautiful
take refactoring to make it more flexible