check before drawing view. refactored start, show, and close