changing form behavior