improve intial rendering of page when loading