added empty cart function and alert