Added a global main thread variable to keep reference on control view currently being drawn.