Changed load_data to tools and added view_data function