added preferences helper class. modified other classes to use it. modified code for places fragment. still a bug.