defined view function for iusers model