added logic to retrieve departments and categories from parse server and display the resulting data