added pagination for messages and style updates