Added a preferences activity