add loading to submit page