created methods for destroy and update for a listing