updated folder controller