Added root to and changed controller for store data