adds listener to save list when added to