adding slider and button