Created button for draw view and fixed rendering race condition