fix UI bug with paddings
fix issue with adding paddings on each redraw