Created a class to enable and disable form components