adding pagination, fixing issue with load events