Refactor for the lightbox generic success and the lightbox delete