bind form directive functions correctly