Delete core code, should not be altered
Added lightbox refresh