Console.log shows all data but display does not