Created ui.py, drawing and signals now recursive