add gui for time duration setting