add code to short url
refactoring ui