Add loading indicators to save function