add loader functionality until data is prepared