better handling for the bounds drawing

and clearing