Distinct functions of homothorax in leg development in Drosophila