gets info from aws for view page