add slider and messagebox