Add more template in asset view. add more method in controller to handle request from our custom javascript. TODO: make it reflected in scaffolding