Handling for orientation change in the second activity. Fixed it so the first activity doesn't freak out as a result.