fix bug. add loading animation