Fixed multiple issues, e.g. moving variable out of group and back to group not working and hiding fields depending on certain value.