added ev.preventDefault() in order $location.path() gets executed