refactored assign users as a partial