listen to appwill-become-active