extracted edit and new populating methodes