zooming and margin updates

this checking is relatively big and consists a lot of changes dealing
with zooming and adding proper margins.  there is still work to be done
with margins and zooming