added constructor to IndexPage