updated ui and reduced download when loading page