added communication b/w getData sidebarCtrl and mainCtrl. SidebarCtrl created for getData.Test cases updated.