use class instead of string

use class instead of string while writing urls