gui depending on control type
merged