Slow response after hitting submit button