Added a preferences button to the ui