Serialize method is now in the view