Fixed some errors which dramatically improve load speed
Set up two files for each horizontal and veritcla layouts