Fixed bug when clicking attachments

The bug that created a new tab every time you clicked on a photo,
document, or link attached to an email has been fixed.