add layout for note activity
fix null mimetypes