FAIMS-259 - add exit for layer dialog, set the name when rename layer, and reverse the order of the layer