Made the view methods more complicated for getting attachments working slightly more correctly.