add loading class when saving