added check url before setting value
fixed coding standards problems