working background thread with handler to UI