Update foldercontroller.php