added method getparentUrl