Fixed text ui functionality and added smart url parsing