took out setting currentpage