add constructor code to Control