improved canvas responsiveness