Minor changes to view, attachment support

Added utils/ for keeping helper functions like the attachment stuff.