fix delete api method
update version
split queryset generation to different method