improve the way the loading animation starts for button