changed form initialization