portfolio functionality working