added enabled state toggle