refactored component placement and changed cursor rendering.