Separated loading data and painting it