Update form_select_tree()

Logic fixes. Clean up codes.