set model map
add map between application and attachment
show attachments for one application; change upload directory from files to uploads