Fixed attaching behaviors to elements and form