The code is not well formatted. And I can't find the code for the Dock ... Are you using your own dock? If not. What dock are you using?