form: changed code to display info correctly