Fixed getCurrentElement, selection efter insert and remove ops and added a bit of css