add active/disable function