Use control in xib/storyboard

This change allows you to use the control in a xib or a storyboard.