changed pagination and jpeg links