Use loop to hang ui