Move common event handlers into base class
DOM renderer should re-render when layers are added or removed