Add view post functionality