fix hover and mouse events.
compare indexes for render order on mouseover.
remove old code.