Preferences dialog can now be resized correctly.

 Added correct layouts and removed size restrictions on widgets.