[lib] redesigned lib/dir url & file_view url