some ui changes
fixed bug with initial id
refactoring: use  instead of save fn