Edited generator of class for base controls