added waiting dialog while request is sending; added error alerts