Function createControlElement