added stopper to scheduler
scheduler start stop works for swing
scheduler start stop works for scalajs