common function and lastreply fot list page