Code edit controll improvement

Check now done with items already here instead of going to the DB for
more.