change template to allow width specification

width can be specified in params or params$table