several changes in layout structure and test for formatting elements