drawing code much neater due to textbox class