Avoid piling up of content-change handlers

Every time you open a module, an additional handler is added to the list. This cleans up after the previous one.