message and user index pagination