resolve data before showing the page