calcute prev&next page
add new message entry on list view