fixed edit page syntax error
add user to group and other fixes