Refactor ui

Having a value of 30 here will lead to differences at the various DPI possibilities