Seperated drawing and logic