Fixed UI issues in ruleeditor