update delete action of this demo, move base model class to models folder.