move attachments display into separate component

This is to prepare for the use of different callbacks for different RT version.
for RT version 4.0.18 and above we use a different callback