updated edit portfolio functionality