moved handlers to all js