work on client side doc controller