adding layout to program