removed some unused html
check if remote_addr is set before doing an ajax call