Layout of Template Dialog