Exception handling in ajax server and client, clean record code in image list generatror.