Ui fixes and potential crash fix
Make the beginResetModel/mList.clear()/endResetModel sequence atomic
Delete raw pointer lists after items are added to the lists
fix crash on restart due to null main window
Improve ui to access chat header buttons when window is at its minimum width