fixed issue with having multiple layouts on a webpage