add set active method