Fix resizing issues

- Accomplished this by replacing QFormLayout with the more flexible
QGridLayout.