Refactor backpacks and folders controller