add onstalled event