modified codes and added background images.