Delete action functioning properly