organize tab and collect.js