fix loader not disappearing after form submit