added mainPagePosition