Why don't you use magic names? 
(on_algorithm_cbx_currentIndexChanged, on_layer_cbx_currentIndexChanged)