Added server side code for folder management