fix bugs in callback function vote
add a template for view callback function results