qt widget code cleanup
code cleanup & adjustable system parameters