made smart redirect for bookmarklet