attempting to fix errors from switching activities