fixed a bug, improved item deleting, now remains on the same page, improved sample generator