logic added for view controlelr to display data on table view