Modify plug to work with DBX refactoring. (Working.)

I updated the code to work with the newest dockbar revision. 

I hope I did the pull request correctly this is the first time I use git and github.