implemented add materie in uiviewcontroller