added model and code to set role data