added button to toggle time lapse