Fixed pagination bug and styling