Replacing Dock Views

This post has a solution for what you are trying to do: