implement widget types

and fix relation between users and usergroups