user can view attachments in note show page
fix some bugs in homework show page