new class for switching activities
Indentations corrected