Initial control code and layout