fixed various bugs and edited line loading animation