Add event handler for first time run and update detected