Working with event listeners.

Removing resize event listener when displaying add form and
re-registering it when clearing and hiding the add form.