refactor url check widget