added preferences activity