added time switching controls (and it actually works now\!)