fix a bug in add_form.html,
fix a bug about AttachmentForm: form.save() return None
adjust model
fix a bug about writing session
update