refactor url and media handler API
refactor url and media handler API
refactor url and link handler API