added slider for changing percentage