added ability of module to use a different data table and fixed output format for embedded layout