new link form is working
refactor a bit
refactor dialog