(incompletely) fix memory leaks via outline view
clean up a listener
remove unnecessary code