wrapped up constraints in QLayout class, tweaked some parameters