add loading icon after form submit