fixed rendering bug; added loading animation