improved upload ,edit and delete for spree-1-2