added activation function to nodeviz