automatically get the base url
errors has been resolved
two of methods has been implemented which was given in task list