fixed draw function
changed draw submit to button