refactoring: initial data to be displayed is sent from the server during initial page load instead of ajax-loading it just after pageload