VueJs method and event handling