Added preview to addAssignment
preview template