changed activate to a toggle