refactor ajax programUnattachedMessages
set of modification link to ajax refactoring