toggle function again

added a second event  for function