Changed scope of getCloneUrl functions to public and call them in place of rewrite their codes