Added code used to build controls