fix paging, add dynamic ui creation