Rest error hanlder added. Progress dialog added.