Update addurl.php

Small bug fixes and modification