Use exclusive event registration, fix resizing