add setData method to ClientModel