refs #3999 create empty_data screen only if needed for better performance and less memory usage
refs #3999 removed duplicated code