updated the activate fucntion to run workflow