saperated gui and lineswithscale class