Call preventDefault() on the add form input so it doesn't submit an actual form
Add docstrings and some minor view fixes