reduces code in js view of organizaiton show and also creates a new querying method to make code more DRY