Ref #232, fixes a bug with moving files to another folder through the index page.