change action on element when click