adding pagination for analyse and tweets