adding a close button

and the move button is now blu-ish.
draw left margin
simplify code with a better dc transform

no longer we need to add the margins to drawing code all over the place.