Ported some event handlers, minor icon stuff.