3819 Add data-method in view rather than JS