added debug messages to track android lifecycle