adding loading image and testing