added refresh, act functions to client, and handling for them in server