Created the UI for the preferences window