Fixed updateRectangle coordinates
Removed selection manager