Added loading dialog while data is been sented to server