handling Fragment as well as Thread.start()