added edit feature to post and portfolioItems