New styled form code from Kirill