catch onstalled event