in the middle of refactoring from services to controllers-inheritance
add save/delete feature, add if unsaved dialog to confirm close feature