prepare view layout attributes