added update and create pathway functionality