switching activities and adding new tasks