added eventlistener for IndexPage