Set labels of location hierarchy buttons dynamically