changed append to prepend and fixed setInterval issue when clicked