Fix open/close classes when toggling form.