adding pagination and chat room