added loading button reset and tested