added a function enable user to input url