setting active troop on click