add close support to DockWidget
support close behavior of dock widgets