some layout fixes for attachments