Added a preferences panel