added analytics code
changed pagination buttons