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