Store task when updated