adding button and slider