changed to pagination to dropdown if too many pages
changed to pagination to dropdown if too many pages