MOdifiedthe code for portfolio detail