removing unnecessary template from lightbox