cleans up form component markup