added paginating and prettify data view