display data from getunits api and implemented paginaton.