Added functionality for viewing data