added options for priority
fixed put request for edit item