add read page function