updates main and post pages