changes to the form directive