added enable and disable functionality