added confirm for deletion of asset from lightbox
refactoring
refactored some type specific code into its object