layout, implementation of downloading data