Fixing so now it only makes table after animation has finished