adapted form handling to new symfony version