some fixes for add new dialog