Recommiting changes for displaying attachments