first attempt at handling ajax failure