Code cleanup in changes in Dialog Box in link.coffee

Please review the code. Did some changes in link.coffee Thanks.