added page rename and remove, added triggerAll, moved attachFiles to main