Added preferences activity