[view] [forms] updated old layout code to use new syntax