fixing image count uploading
search bar function