display a loader on submit