Saves the assignment when edited