front end now succesfully queries and displays data from the server, also did a fair amount of rearranging of my mess