added form and state to component