added advertisement and few checks for null fragments after ondestroy called.