modified layout functionality