Added configChanges to keep activity alive when screen is locked.
Fixed potential null pointer bug