fill fields when editing task