fixed resolution issues when calcuting where to position things.

Sorted out text and spacing