prepare to swap div for canvas