Converted attachment viewer to model pop-up