+ added deleting demo method
+ added statement to stop adding a new item when there is already an item
+ added CRUD operations for the detailpage and the index page