moved problematic code into onCreate; updated .gitignore