added Settings activity and location preference