downloading and displaying data from server correctly