edit/delete mode with alert dialog and refreshing tabs