remove loading class from element after trigger