Implemented the preferences window

Updated the window's layout and design
Implemented the preferences saving
Reviewed the design