onUpdate and onDestroy callbacks added