added logs for lifcycle in main activity