Set layout and main gem