sort links correctly
new link form error handling