added onmouseout handler for main canvas