bugfix in view for variables that are not arrays; fixed roles in controller