comments added for updating edit and add criteria