Added singleton and def setting activity