Added a logic for add bar button to add a static item. Also added commitEditingStyle method to implement swipe-to-delete.