Set up rootScope to remember previously selected item