added invalid url handling 

Handle invalid URL and add button.