adding the pics model and pic contorller and the loop in the view