Change theme api to rpc