separate templates for input and results rows