changed ports, began using templates, added AJAX