Added all UI elements to the stats page programmatically