moved MainContentofPage in portfolio loop