process messages from the server and update UI

process messages from the server and update the slider position in the
client