linked up the categories view with the server