redo the way graphics are managed when making dock