implemented getPathwayItemsapi  in view