fix resborder hover, cleanup orphaned code