main pages fix