Refactored show & delete action.