fixed controller for working with root folder