Updated WLoadingDialog example and reformatted codes.