improve view of loading and do view for total pages