Fixed bug where no profile was getting selected

#13570 and #13564
Various bugfixes and styling adjustments

Fixes #13566
Fixes #13567
Fixex #13568
Fixes #13570
Fixes #13585