Sending actions to server