Added loading animation whilst waiting for server response